package com.lanou.demo;

import redis.clients.jedis.JedisPubSub;

public class MessageListener extends JedisPubSub {
    @Override
    public void onMessage(String channel, String message) {
        System.out.println(channel);
        if ("item-add".equals(channel)) {
            System.out.println(message);
        } else if ("item-update".equals(channel)) {

        }
    }
}
